<?php
$url = $_SERVER['REQUEST_URI'];
$k = explode('/', $url);
$kurl = '';
if (count($k) > 0) {
    $kurl = $k[1];
}
?>

<div class="nav">
    <ul class="nav-box clearfix">
        <li <?php if ($kurl != 'member') {echo 'class="act"';} ?>><a href="/book.html"><i class="nav-icon book-icon"></i>老侯代读</a></li>
        <li <?php if ($kurl == 'member') { echo 'class="act"';} ?>><a href="/member/index.html"><i class="nav-icon user-icon"></i>我的</a></li>
    </ul>
</div>